package Szadoban;

import java.awt.Image;

/**
 * Superclass of classes Box, Destination, Wall, Player
 */
public class Element {
	
	/**
	 * Position of the element in space (x)
	 */
	private int x;
	private int y;
	
	/**
	 * Position of the element in space (x)
	 */
	private Image image;
	
	/**
	 * Element constructor
	 * @param x
	 * @param y
	 */
	public Element(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	/**
	 * 
	 * @return Image object
	 */
	public Image getImage(){
		return this.image;
	}
	
	public void setImage(Image image){
		this.image = image;
	}
	/**
	 * 
	 * @return x
	 */
	public int getX(){
		return this.x;
	}
	
	/**
	 * 
	 * @return y
	 */
	public int getY(){
		return this.y;
	}
	
	/**
	 * Set position x
	 * @param x
	 */
	public void setX(int x){
		this.x = x;
	}
	
	/**
	 * Set position y
	 * @param y
	 */
	public void setY(int y){
		this.y = y;
	}
}
